﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp3
{
    class Student : Person
    {

        private string major;
        private string garde;


        public string Major { get; set; }
        public string Garde { get; set; }

        public Student(int Id, string name, char sex, int cardid, int tel, string major, string garde) : base(Id, name, sex, cardid, tel)
        {
            this.major = "软件技术";
            this.garde = "大一";
        }


        public void introduction()
        {
            Console.WriteLine("我的年级是" + this.major);
            Console.WriteLine("我的专业是" + this.garde);
        }
    }
}
